package lanqiao;

import java.util.Scanner;

public class 成绩分析 {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        //在此输入您的代码...
        int N=scan.nextInt();
        int max=0;
        int min=100;
        int sum=0;
        for (int i = 0; i < N; i++) {
            int m = scan.nextInt();
            max=Math.max(max,m);
            min=Math.min(min,m);
            sum=sum+m;
        }
        double ans=sum/N;
        System.out.println(max);
        System.out.println(min);
        System.out.printf("%.2f",ans);
        scan.close();
    }


}
